def fun(ls):
    for n in ls:
        if ls.count(n) > 1:
            return True
        else:
            return False
def fun2(ls):
    return len(set(ls)) < len(ls)
    ls = eval(input('请按照列表格式输入列表元素：'))
    if fun(ls) == True:
        print('There are duplicate elements in this list')
    else:
        print('There are no duplicate elements in this list')
    if fun2(ls) == True:
        print('该列表中存在重复元素')
    else:
        print('该列表中不存在重复元素')

